package com.carefree.system.modules.admin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.carefree.common.core.PageUtils;
import com.carefree.common.core.QueryParam;
import com.carefree.system.modules.admin.dao.UserRoleDao;
import com.carefree.system.modules.admin.entity.UserRoleEntity;
import com.carefree.system.modules.admin.service.UserRoleService;
import org.springframework.stereotype.Service;

import java.util.Map;


/**
 * 用户角色关联
 *
 * @author tengbin
 */
@Service("userRoleService")
public class UserRoleServiceImpl extends ServiceImpl<UserRoleDao, UserRoleEntity> implements UserRoleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserRoleEntity> page = page(new QueryParam<UserRoleEntity>().getPage(params), new QueryWrapper<UserRoleEntity>());
        return new PageUtils(page);
    }

}
